Skip to content

chore: untrack committed Python bytecode - #121

Merged
ExtraToast merged 1 commit into
mainfrom
chore/untrack-python-bytecode
Aug 27, 2026
Merged

chore: untrack committed Python bytecode#121
ExtraToast merged 1 commit into
mainfrom
chore/untrack-python-bytecode

Conversation

@ExtraToast

Copy link
Copy Markdown
Contributor

Ten .pyc files under scripts/__pycache__/ and tests/__pycache__/ were committed, and __pycache__/ was not in .gitignore.

A .pyc embeds the source mtime and the interpreter version, so every test run rewrote them and git status reported ten modified files. This repo was dirty permanently, every diff carried binary noise, and a real change would be easy to lose among them.

Changes

  • git rm --cached the ten files — they stay on disk and are regenerated on demand
  • ignore __pycache__/ and *.py[cod]

Nothing imports the bytecode; Python regenerates it. Found while sweeping all 30 submodules for #60, which had only named four repos with untracked .claude/ — this one was dirty for an unrelated and worse reason.

Refs JorisJonkers-dev/workspace#60

Ten `.pyc` files under `scripts/__pycache__/` and `tests/__pycache__/` were
committed, and `__pycache__/` was not in `.gitignore`.

A `.pyc` embeds the source mtime and the interpreter version, so every test
run rewrote them and `git status` reported ten modified files. The repo was
dirty permanently, every diff carried binary noise, and a real change here
would be easy to miss among them.

- `git rm --cached` the ten files (they stay on disk, regenerated on demand)
- ignore `__pycache__/` and `*.py[cod]`

Refs JorisJonkers-dev/workspace#60

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PPnwbKr1Ex9iXAtv6TThAU
@ExtraToast ExtraToast added the type: chore Maintenance work without intended behavior change. label Aug 27, 2026
@ExtraToast
ExtraToast merged commit e83e054 into main Aug 27, 2026
6 checks passed
@ExtraToast
ExtraToast deleted the chore/untrack-python-bytecode branch August 27, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: chore Maintenance work without intended behavior change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant